package com.zzx.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zzx.entity.BaseEntity;

import java.io.Serializable;
import java.math.BigDecimal;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 产品-工序表
 *
 * @author zzx
 * @since 2025-06-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_product_gx")
public class TProductGx extends BaseEntity implements Serializable {


    /**
     * 产品-工序ID
     */
    @ApiModelProperty("产品-工序ID")
    @TableId
    private Long productGxId;

    /**
     * 工序ID
     */
    @ApiModelProperty("工序ID")
    @TableField("gx_id")
    private Long gxId;

    /**
     * 产品-工序分组ID
     */
    @ApiModelProperty("产品-工序分组ID")
    @TableField("product_gx_group_id")
    private Long productGxGroupId;

    /**
     * 产品ID
     */
    @ApiModelProperty("产品ID")
    @TableField("product_id")
    private Long productId;

    /**
     * 单价
     */
    @ApiModelProperty("单价")
    @TableField("unit_price")
    private BigDecimal unitPrice;

    /**
     * 次数
     */
    @ApiModelProperty("次数")
    @TableField("num")
    private Integer num;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    /**
     * 描述
     */
    @ApiModelProperty("描述")
    @TableField("mark")
    private String mark;

    @TableField(exist = false)
    private String gxName;
    @TableField(exist = false)
    private String gxCode;

}
